{% extends 'base.html' %}
{% block main %}
    <div class="content-wrap">
        <div id="content" class="content">
            <div id="posts" class="posts-collapse">
                <div class="collection-title">
                    <h2>
                        {{ tag.name }}
                        <small>标签</small>
                    </h2>
                </div>
                {% for post in posts %}
                    <article class="post post-type-normal">
                        <header class="post-header">
                            <h1 class="post-title">
                                <a class="post-title-link" href="{{ post.get_absolute_url }}" itemprop="url">
                                    <span itemprop="name">{{ post.title }}</span>
                                </a>
                            </h1>
                            <div class="post-meta">
                                <time class="post-time" itemprop="dateCreated" datetime="{{ post.publish }}"
                                      content="{{ post.publish|date:'Y-m-d' }}">
                                    {{ post.publish|date:'m-d' }}
                                </time>
                            </div>
                        </header>
                    </article>
                {% empty %}
                    没有
                {% endfor %}
            </div>
        </div>
    </div>
{% endblock %}

